package cn.edu.scau.cmi.suwenpeng.chapter05;

class Tom {
	private int x = 120;
	protected int y = 20;
	int z = 11;

	@SuppressWarnings("unused")
	private void f() {
		x = 200;
		System.out.println(x);
	}

	void g() {
		x = 200;
		System.out.println(x);
	}
}

public class A_exercise7 {

	public static void main(String[] args) {
 Tom tom=new Tom();
// tom.x=22;//The field Tom.x is not visible
 tom.y=22;
 tom.z=22;
// tom.f();//The method f() from the type Tom is not visible
 tom.g();
	}

}
